package com.mune.gulimall.product.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.fasterxml.jackson.core.JsonProcessingException;
import com.mune.common.utils.PageUtils;
import com.mune.gulimall.product.entity.CategoryEntity;
import com.mune.gulimall.product.vo.Catelog2Vo;

import java.util.List;
import java.util.Map;

/**
 * 商品三级分类
 *
 * @author mune
 * @email 1356008591@qq.com
 * @date 2020-07-28 20:48:31
 */
public interface CategoryService extends IService<CategoryEntity> {

  PageUtils queryPage(Map<String, Object> params);

  List<CategoryEntity> listWithTree();

  void removeMenuByIds(List<Long> asList);

  /**
   * 找到catelog的完整路径
   *
   * @param catelogId
   * @return
   */
  Long[] findCatelogPath(Long catelogId);

  void updateCascade(CategoryEntity category);

  List<CategoryEntity> getLevel1Categorys();

  Map<String, List<Catelog2Vo>> getCatalogJson();
}

